-- GENERATED SPELL FOR [Sightless Eye] --


function spell0_21346(pUnit, Event) --@Sightless Touch,n/a--
pUnit:FullCastSpellOnTarget(36646,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21346', 6000, 1)
end

function spell1_21346(pUnit, Event) --@Sightless Touch,n/a--
pUnit:FullCastSpellOnTarget(38815,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21346', 6000, 1)
end

function Sorts_21346(pUnit, Event)
local choix_sorts_21346 = math.random(0, 1)
if choix_sorts_21346 == 0 then
pUnit:RegisterEvent('spell0_21346', 1, 1)
end
if choix_sorts_21346 == 1 then
pUnit:RegisterEvent('spell1_21346', 1, 1)
end
end

function mob21346_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21346', math.random(1500, 3000), 1)
end

function mob21346_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21346_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21346_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21346, 1, 'mob21346_Action')
RegisterUnitEvent(21346, 2, 'mob21346_Leave')
RegisterUnitEvent(21346, 3, 'mob21346_Kill')
RegisterUnitEvent(21346, 4, 'mob21346_Die')
